package com.dubbo.accessory.mapper;

import com.dubbo.model.accessory.dtos.AccessorySellerDto;
import com.dubbo.model.accessory.pojos.AccessorySeller;
import java.util.List;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface AccessoryProviderMapper {
    @Insert("insert into accessory_provider (provider_Name,provider_simName,domain_id,address,contacter,contacter_Phone,relative_identification)" +
            "values(#{provider_Name},#{provider_simName},#{domain_id},#{address},#{contacter},#{contacter_Phone},#{relative_Identification})")
    public void addAccessorySeller(@Param("provider_Name") String provider_Name
            , @Param("provider_simName") String provider_simName
            , @Param("domain_id") Integer domain_id
            , @Param("address") String address
            , @Param("contacter") String contacter,
                                   @Param("contacter_Phone") String contacter_Phone
            , @Param("relative_identification") String relative_Identification);
/*    @Insert("insert into accessory_provider (provider_Name,provider_simName,domain_id,address,contacter,contacter_Phone,relative_identification)" +
            "values(#{})")
    public void addAccessorySeller(@Param("accessorySellerDto") AccessorySellerDto accessorySellerDto);*/
    @Select("select * from accessory_provider")
public List<AccessorySeller>getAccessorySeller();
}
